/**
 * <p>
 * 表格配置
 *
 * @Author：Roy
 * @Description：公司计量统计
 * @Date：Create by 2023-12-05 11:48:22
 */
// 隐藏操作按钮的规则配置，字段名：isEdit
const isHidden = (list, row) => {
  const { isEdit } = row || {}
  return list.includes(String(isEdit))
}

const headerConfig = {
  'company-meter-statistic': [
    {
      prop: 'solidifyDateStr',
      name: '数据时间',
      minWidth: 130
      // format: {
      //   type: 'date',
      //   showType: '{y}-{m}-{d} {h}时'
      // }
    },
    {
      prop: 'companyName',
      name: '公司名称',
      minWidth: 110
    },
    {
      prop: 'readMeterTypeName',
      name: '读表类型',
      minWidth: 110
    },
    {
      prop: 'energyTypeName',
      name: '能源类型',
      minWidth: 110
    },
    {
      prop: 'meterDeviceCount',
      name: '设备数量',
      minWidth: 110
      // tdClass: 'td-device-count',
      // clickConfig: {
      //   type: 'router-skip',
      //   authId: 'ecp-admin:meterDevice:search',
      //   routerPath: '/energy/meterDevice',
      //   paramsList: ['sceneCompanyId']
      // }
    },
    {
      prop: 'meterValue',
      name: '总计量值',
      minWidth: 110
    },
    {
      prop: 'energyTypeUnit',
      name: '单位',
      minWidth: 110
    }
  ]
}

export default {}
export { headerConfig }
